var thisPage = {
    first: 0,
    // 初始化页面
    OnPageLoad: function () {
        //thisPage.FetchWorkFlowOfDeployed();
        //setTimeout(function () {
        $('#loading').hide();
        //}, 100);
    },
    // 得到已经定义的流程列表
    FetchWorkFlowOfDeployed: function () {
        $.ajax({
            type: "POST",
            url: parent.basePath + "/dashBoard/process/deployed.html",
            timeout: 30 * 1000,
            data: JSON.stringify($('#UserId').val()),
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            beforeSend: function () {
                showLoadmask();
            }
        }).done(function (data) {
        }).fail(function (data) {
            ajaxError(data, 1);
        }).always(function ( ) {
            hideLoadmask();
        });
    },
    ShowBulletin(bulletinId) {
        showModal(1050, 560, "公告板", parent.basePath + "/oa/bulletin/" + bulletinId + "/show.html", null, function ($dialog) {
            var _exist = $.inArray($dialog, parent.arrDialog);
            if (_exist >= 0) {
                parent.arrDialog.splice($.inArray($dialog, parent.arrDialog), 1);
            }
        });
    }
};

//-----------------------------------------------------------------------------
// 页面初始化
//-----------------------------------------------------------------------------
function onPageReady() {
    $("#search_btn").hide();                  // 主画面不需要搜索，隐藏搜索按钮
    $("#form_data").data("changed", false);   // 初始化form数据提交状态

    thisPage.OnPageLoad();
}

function onPageResize() {
}
